//
//  HMPlatformConfig.swift
//  HealthMonitoring
//
//  Created by 珠海正杰 on 2018/9/10.
//  Copyright © 2018年 YTYanK. All rights reserved.
//

import UIKit


/**
 * - 偏执的
 */
class HMPlatformConfig: NSObject {
    /// 环境 - 默认正式环境
    private var environment: Int = 0 //= 0
    /// 是否支持后台打印 - 默认开起后台打印
    private var enableConsoleLog: Bool = false
    /// 日志级别 - 默认debug等级
    private var logLevel: NSInteger = 0
    
    
//   required init() -> HMPlatformconfig {
//        self.environment = 0
//        self.enableConsoleLog = false
//        self.logLevel = 0
//        return self
//    }
    
    
    func saveToLocal() {
//         HMPlatform.sharePlatform.host
    }
    
    
    
    class func logLevelTips(dic: NSDictionary) {
        
    }
    ///  设置环境
    func chageEnvTo(env: Int) {
        if self.environment !=  env {
            self.environment = env
        }
    }
    ///  设置是否支持后台打印
    func chageEnableConsoleTo(enable: Bool) {
        
    }
    ///  设置日志级别
    func chageLogLevelTo(level: NSInteger) {
        
    }
    
    func getLogLevelTip() -> NSString {
        return ""
    }
    
}
